from aip import AipFace

""" 你的 APPID AK SK """
APP_ID = '18418838'
API_KEY = 'KN0GTzX6f7glltEOWZQlMGIX'
SECRET_KEY = 'ht64yY4rWR4NP4uBlyNUjTzyOE3mc3Qv'

client = AipFace(APP_ID, API_KEY, SECRET_KEY)


#读取图片
image="https://gss1.bdstatic.com/-vo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike180%2C5%2C5%2C180%2C60/sign=e84628d9b8fb43160e12722841cd2d46/37d3d539b6003af3efac94723f2ac65c1038b68a.jpg"
imageType = "URL"

options = {}
options["face_field"] = "age,beauty"
options["max_face_num"] = 1
options["face_type"] = "LIVE"

result=client.detect(image, imageType,options)
print(result['result']['face_list'])